﻿using System;
using System.Windows.Forms;
using static Code.Encodr;

namespace Code
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }
        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Encodr1 myEncoer = new Encodr1();
            myEncoer.Plaintext = this.textBox1.Text;
            myEncoer.Key = this.textBox2.Text;
            myEncoer.Encoder();
            label1.Text = myEncoer.Cypher;
        }


    }
}
